package com.yixiang.np.service;

import java.util.List;

import com.yixiang.np.model.SessionInfo;
import com.yixiang.np.model.Tree;
import com.yixiang.np.model.po.Resource;

public interface ResourceServiceI {

	public List<Resource> treeGrid();

	public void add(Resource resource);

	public void delete(Long id);

	public void edit(Resource resource);

	public Resource get(Long id);

	public List<Tree> tree(SessionInfo sessionInfo);

	public List<Tree> allTree(boolean flag);

	public List<String> resourceAllList();

	public String resourceString(Long pid,Long userid);

	public String resourceFirString(Long pid,Long userid,String path);

	public String resourceSecString(Long pid,Long userid,String path);

	public List<Resource> userResource(Long userid);
}
